import instance from '@/utils/request';

export function geTricolourLightapi(data) {
    return instance.request({
        url: "/api/IotInfo/GetTricolourLight",
        method: "post",
        data
    })
}

export function addTricolourLightapi(data) {
    return instance.request({
        url: "/api/iotInfo/PostAddTricolourLight",
        method: "post",
        data
    })
}

export function updateTricolourLightapi(data) {
    return instance.request({
        url: "/api/IotInfo/PutUpdateTricolourLight",
        method: "put",
        data
    })
}




export function deleteTricolourLightapi(data) {
    return instance.request({
        url: "/api/iotInfo/DeleteTricolourLight",
        method: "delete",
        data
    })
}

export function GetTotaocount() {
    return instance.request({
        url: "/api/iotInfo/GetCount",
        method: "get",
    })
}


export function GetSelectTricolour(data) {
    return instance.request({
        url: "/api/iotInfo/UpdateSelectTricol",
        method: "put",
        data
    })
}

export function UpdateSelectTricol1(data) {
    return instance.request({
        url: "/api/iotInfo/UpdateSelectTricol1",
        method: "put",
        data
    })
}